<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	response.setHeader("Content-Disposition", "attachment; filename=PHILERGYSYSTEM_EMP_excel.xls"); 
	//[출처] 간단하게 JSP로 Excel파일 생성하기(excel,엑셀) - 자바누리|작성자 비온디
 %>

<!--
/***********************************************
* 파일명   	: empExcel.jsp
* 기  능      	: 사원관리-엑셀다운로드 LIST
* 최초 작성일 	: 2009/10/17
* @author 	: Yang D
*************************************************
-->
<html>
<head>
	<meta http-equiv="Content-Type" 	content="text/html; charset=UTF-8" />
	<meta http-equiv="pragma" 			content="no-cache" />
	<meta http-equiv="cache-control" 	content="no-cache" />
	<meta http-equiv="expires" 			content="0" />

</head>
<body>
    <table border="1">
		<tr>
			<th>그룹</th>
			<th>팀</th>
			<th>아이디</th>
			<th>성명</th>
			<th>직책</th>
			<th>입사일</th>
			<th>퇴사일</th>
			<th>재직여부</th>
			<th>휴직여부</th>
		</tr>
	    <s:iterator value="list" >
		<tr>
	    	<td><s:property value="group_nm" /></td>
	    	<td><s:property value="team_nm" /></td>
	    	<td><s:property value="user_id" /></td>
	    	<td><s:property value="emp_nm" /></td>
	    	<td><s:property value="rank_nm" /></td>
	    	<td><s:property value="apply_dt" /></td><!-- 입사일 -->
	    	<td><s:property value="retire_dt" /></td><!-- 퇴사일 -->
	    	<td><s:property value="work_yn" /></td>
	    	<td><s:property value="vaca_yn" /></td><!-- 휴직여부 -->
		</tr>
	    </s:iterator>
	</table>
</body>
</html>